const http=require('http');

http.createServer(function(req,res){

	if(req.url.indexOf('?')!=-1){
		 var GET={user:'blur',pass:'123456'};
	var arr=req.url.split("?");
	var url=arr[0];
    
    var arr2=arr[1].split("&");

    for (var i = 0; i < arr2.length; i++) {
    	var arr3=arr2[i].split('=');
    	GET[arr3[0]]=arr3[1];
    }
     console.log(url,GET);
     res.write('222');
}else{
	 console.log(req.url);
     res.write('222');

} 

   
    
   
     res.end();
}).listen(8080);